<template>
  <div>
    <mt-swipe :auto="3000">
      <!-- lunbotulist 数据必须从父级组件中传递过来--- -->
      <mt-swipe-item v-for="item in lunbotulist" :key="item.id">
        <img :src="item.img" alt :class="{'full':isfull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
  data: function() {
    return {};
  },
  props: ["lunbotulist", "isfull"]
};
</script>

<style lang="scss" scoped>
.mint-swipe {
  height: 150px;
  img {
    height: 100%;
  }
  .full {
    width: 100%;
  }
  .mint-swipe-item {
    &:nth-child(1) {
      background-color: red;
    }
    &:nth-child(2) {
      background-color: blue;
    }
    &:nth-child(3) {
      background-color: pink;
    }
  }
}
</style>



